package com.zhang.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class BaseEntity  implements Serializable {

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")    //日期格式化
    private LocalDateTime created;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")    //日期格式化
    private LocalDateTime updated;
}
